<html xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<script type="text/javascript">
  //<![CDATA[
   //debe usarse los \\:  en lugar de : en los selectores de JQuery
   $( document ).ready(function() {	  
	 console.log('Listo');
	});        
//]]>
</script>
	<link rel="stylesheet" type="text/css" href="css/estilo.css" />
	<script type="text/javascript" src="js/main.js" />
</h:head>
<h:body>
	<br />
	<CENTER>
		<h1>
			<h:outputLabel value="Robot Explorador" />
		</h1>
	</CENTER>
	<h:form id="form_content">
			<div class="clearfix text-align-left">
				<h:outputLabel value="Administrador" />
			</div>


			<div class="ui-form-row clearfix text-align-center">
				<br />

				<p:dataTable var="userRegister" value="#{userRegistrationController.userRegisters}">
					<p:column headerText="Nombre de usuario">
						<h:outputText value="#{userRegister.userName}" />
					</p:column>

					<p:column headerText="Primer Nombre">
						<h:outputText value="#{userRegister.firstName}" />
					</p:column>

					
					<p:column headerText="Primer Apellido">
						<h:outputText value="#{userRegister.firstLastName}" />
					</p:column>
					
					<p:column headerText="Tipo de Usuari">
						<h:outputText value="#{userRegister.profile}" />
					</p:column>
					
					<p:column headerText="Opciones" width="20%">
<!-- 							<p:commandButton value="#{i18n['cmpnt.edit']}" -->
<!-- 								oncomplete="currentPage('main_owner_data.xhtml')" -->
<!-- 								styleClass="ui-flowbutton"> -->
<!-- 								<f:setPropertyActionListener value="#{userRegister}" -->
<!-- 									target="#{userRegistrationController.userSelected}" /> -->
<!-- 							</p:commandButton> -->
							<p:commandButton value="#{i18n['cmpnt.delete']}"								
								styleClass="ui-flowbutton" oncomplete="currentPage('elimination_confirm.xhtml')" >
								<f:setPropertyActionListener  value="#{userRegister}"
									target="#{userRegistrationController.userSelected}" />
							</p:commandButton>
					</p:column>
					
				</p:dataTable>
				
				
				<div>
				 <h:outputText value="#{userRegistrationController.userSelected.userName}" />
				</div>
				
			</div>
	</h:form>
</h:body>

</html>